<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sj" tagdir="/WEB-INF/tags/spring-jquery-tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<script type="text/javascript">
	$(document).ready(function() {
		$('table.tablesorter').tablesorter({
			widgets : [ 'zebra' ],
			sortList : [ [ 0, 0 ] ],
			headers : {
				2 : {
					sorter : false
				}
			}
		});

		$('.edit-cipeprojectstatus-link').click(function() {
			loadDiv('content', 'showEditCipeprojectstatus.do?id=' + $(this).attr('cipeprojectstatusId'));
		});
	});
</script>
<div id="cipeprojectstatusListDiv" class="hastable" style="overflow: auto">
	<table class="tablesorter">
		<thead>
			<tr>
				<th><spring:message code="cipeprojectstatuslist.table.heading.displayName" /></th>
				<th><spring:message code="cipeprojectstatuslist.table.heading.description" /></th>
				<th><spring:message code="cipeprojectstatuslist.table.heading.edit" /></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${cipeprojectstatuses}" var="cipeprojectstatus">
				<tr>
					<td>${cipeprojectstatus.displayName}</td>
					<td>${cipeprojectstatus.description}</td>
					<td><a href="javascript://" class="edit-cipeprojectstatus-link" cipeprojectstatusId="${cipeprojectstatus.id}"><spring:message code="cipeprojectstatuslist.table.link.edit" /></a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div id="cipeprojectstatusListPager"></div>
</div>
